package com.zl.easybuy.util;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.util.List;
@Data
public class Pages<T> {
    private Integer pageSize;//页容量
    private Integer pageNo;//当前页
    private Integer totalCount;//总数量
    private List<T> record;//数据
    private String url;
    public Integer getTotalPage(){
        return totalCount%pageSize==0?totalCount/pageSize:totalCount/pageSize+1;
    }
}


